from django.db import models

# Create your models here.
class User(models.Model):
    uid = models.AutoField(primary_key=True)
    username = models.CharField(max_length=20)
    password = models.CharField(max_length=20)
    status = models.CharField(max_length=10)
    phone = models.CharField(max_length=11)
    gender = models.CharField(max_length=2)
    age = models.IntegerField()
    email = models.CharField(max_length=50)

    class Meta:
        db_table = 'user'
        managed = False  # 同一个表名在多个Model的db_table中使用
